﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:geral="clr-namespace:MOJ">

    <!-- *************************************************************************** -->
    <!-- ******************************* Resources ********************************* -->
    <!-- *************************************************************************** -->
    <geral:ConvertThumbPathToImage x:Key="GetThumbImage" />
    <geral:ConvertImagePathToBitmapImage x:Key="ConvertPath2Image"/>
    
    <geral:ConvertFileTypeTopImageOfFileType x:Key="ConvertInt2Image20x20" />
    <geral:ConvertFileIndex x:Key="ConvertFileIndex2Button" />
    <geral:ConvertLanguageCode x:Key="ConvertLang2Button" />

    <SolidColorBrush x:Key="TransparentGrey" Color="#CD000000" />
    <!-- *************************************************************************** -->


    <!-- *************************************************************************** -->
    <!-- ******************** Movie Search Styles & Templates ********************** -->
    <!-- *************************************************************************** -->
    <Style x:Key="0101054"
           TargetType="Grid">
        <Setter Property="Background"
                Value="{StaticResource TransparentGrey}" />
    </Style>
        <!-- *************************************************************************** -->






    <!-- *************************************************************************** -->
    <!-- ******************** Movie Search Styles & Templates ********************** -->
    <!-- *************************************************************************** -->
    <Style x:Key="0101005" TargetType="ListView">
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <WrapPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <DataTemplate x:Key="0201001">
            <StackPanel Orientation="Vertical">
            <Image Width="90" Height="140" Source="{Binding Cover, Converter={StaticResource GetThumbImage}}" Stretch="Fill"/>
                <TextBlock Width="90" TextWrapping="Wrap" Text="{Binding Title}" TextAlignment="Center" />
                <TextBlock Width="90" TextWrapping="Wrap" Text="{Binding Year}" TextAlignment="Center"/>
        </StackPanel>
    </DataTemplate>
    <!-- *************************************************************************** -->





    <!-- *************************************************************************** -->
    <!-- ****************** Insert new Movie Styles & Templates ******************** -->
    <!-- *************************************************************************** -->
    <DataTemplate x:Key="0201002">
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="{Binding MovieTitle}" TextAlignment="Center"  FontWeight="Bold"/>
            <TextBlock Text=" (" TextAlignment="Center" />
            <TextBlock Text="{Binding MovieYear}" TextAlignment="Center"/>
            <TextBlock Text=" )" TextAlignment="Center" />
        </StackPanel>
    </DataTemplate>
    <!-- *************************************************************************** -->





    <!-- *************************************************************************** -->
    <!-- ****************** Control_MovieDetails *********************************** -->
    <!-- *************************************************************************** -->
    <Style x:Key="0101031"
           TargetType="Image">
        
        <Setter Property="Stretch"
                Value="Fill" />
    </Style>
    <DataTemplate x:Key="0201006">
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="{Binding Country}"/>
        </StackPanel>
    </DataTemplate>
    <DataTemplate x:Key="0201004">
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <Image Source="{Binding FileType, Converter={StaticResource ConvertInt2Image20x20}}" />
                <Label Content="{Binding FileID, Converter={StaticResource ConvertFileIndex2Button}}" />
                <Label Content="{Binding FileID, Converter={StaticResource ConvertLang2Button}}" />
                <TextBlock Text="{Binding FilePath}"
                           FontSize="12"
                           Padding="0,6,0,0"/>
            </StackPanel>
        </StackPanel>
    </DataTemplate>         
    <!-- *************************************************************************** -->


    <!-- *************************************************************************** -->
    <!-- ***************** Control_ImportImage Styles & Templates ****************** -->
    <!-- *************************************************************************** -->
    <Style x:Key="0101051" TargetType="ListView">
        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled" />
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <WrapPanel Orientation="Horizontal" />
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="0101052" TargetType="Grid">
        <Setter Property="Background" Value="{StaticResource TransparentGrey}"/>
    </Style>

    <DataTemplate x:Key="0201007">
        <StackPanel Orientation="Vertical">
            <Image Width="90" Height="140" Source="{Binding ThumbPath, Converter={StaticResource ConvertPath2Image}}" Stretch="Fill"/>
        </StackPanel>
    </DataTemplate>
    <!-- *************************************************************************** -->




    <!-- *************************************************************************** -->
    <!-- Control_ViewMovies -->
    <!-- *************************************************************************** -->
    <Style x:Key="0101055" TargetType="Rectangle">
        <Setter Property="Fill"
                Value="{StaticResource TransparentGrey}" />
    </Style>
    <Style x:Key="0101057" TargetType="ListView">
        <Setter Property="Background" Value="{StaticResource TransparentGrey}" />

        <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/>
        <Setter Property="ItemsPanel" Value="{DynamicResource ViewMoviesListTemplate}" />
    </Style>

    <DataTemplate x:Key="0201008">
        <StackPanel Orientation="Horizontal">
            <StackPanel Orientation="Vertical">
                <Image Height="200" Width="132" Source="{Binding Cover}" Stretch="Fill" />
            </StackPanel>
            <StackPanel Orientation="Vertical">
                <TextBox Text="{Binding MovieTitle}" Foreground="White" Background="Transparent" />
            </StackPanel>
        </StackPanel>
    </DataTemplate>

    <ItemsPanelTemplate x:Key="ViewMoviesListTemplate">
        <WrapPanel Orientation="Horizontal"/>
    </ItemsPanelTemplate>
    <!-- *************************************************************************** -->





    <!-- *************************************************************************** -->
    <!-- Control_MainSettings -->
    <!-- *************************************************************************** -->
    <Style x:Key="0101060" TargetType="Grid">
        <Setter Property="Background" Value="{StaticResource TransparentGrey}"/>
    </Style>
    <Style x:Key="0101059" TargetType="TabControl">
        <Setter Property="Background" Value="{StaticResource TransparentGrey}"/>
    </Style>
    <!-- *************************************************************************** -->








    <!-- *************************************************************************** -->
    <!-- Control_HandleFiles -->
    <!-- *************************************************************************** -->

    <Style x:Key="0101085" TargetType="Grid">
        <Setter Property="Background" Value="{StaticResource TransparentGrey}"/>
    </Style>
    <Style x:Key="0101089" TargetType="ListView">
        <Setter Property="ItemTemplate" Value="{DynamicResource ItemTemplate0101089}" />
    </Style>
    <Style x:Key="0101088" TargetType="ListView">
        <Setter Property="ItemTemplate" Value="{DynamicResource ItemTemplate0101088}"/>
    </Style>
    
    <DataTemplate x:Key="ItemTemplate0101089">
        <StackPanel Orientation="Horizontal">
            <CheckBox IsChecked="{Binding IsSelected}" Content="{Binding FileName}" ToolTip="{Binding FilePath}" />
        </StackPanel>
    </DataTemplate>
    <DataTemplate x:Key="ItemTemplate0101088">
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="{Binding FileName}" ToolTip="{Binding FilePath}" />
        </StackPanel>
    </DataTemplate>
    <!-- *************************************************************************** -->









    <!-- *************************************************************************** -->
    <!-- Control_SelectFile -->
    <!-- *************************************************************************** -->
    <Style x:Key="0101098" TargetType="Grid">
        <Setter Property="Background" Value="{StaticResource TransparentGrey}"/>
    </Style>
    <Style x:Key="0101099" TargetType="ListView">
        <Setter Property="ItemTemplate" Value="{DynamicResource ItemTemplate0101099}" />
    </Style>

    <DataTemplate x:Key="ItemTemplate0101099">
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="{Binding FileName}" ToolTip="{Binding FilePath}"/>
        </StackPanel>
    </DataTemplate>
    <!-- *************************************************************************** -->





    <!-- *************************************************************************** -->
    <!-- Control_SelectIndex -->
    <!-- *************************************************************************** -->
    <Style x:Key="0101101" TargetType="Grid">
        <Setter Property="Background" Value="{StaticResource TransparentGrey}"/>
    </Style>
    <Style x:Key="0101102" TargetType="ListView">
        <Setter Property="ItemTemplate" Value="{DynamicResource ItemTemplate0101102}" />
    </Style>

    <DataTemplate x:Key="ItemTemplate0101102">
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="{Binding Index}"/>
        </StackPanel>
    </DataTemplate>
    <!-- *************************************************************************** -->




    <!-- *************************************************************************** -->
    <!-- Control_SelectIndex -->
    <!-- *************************************************************************** -->
    <Style x:Key="0101103" TargetType="Grid">
        <Setter Property="Background" Value="{StaticResource TransparentGrey}"/>
    </Style>
    <Style x:Key="0101104" TargetType="ListView">
        <Setter Property="ItemTemplate" Value="{DynamicResource ItemTemplate0101104}" />
    </Style>

    <DataTemplate x:Key="ItemTemplate0101104">
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="{Binding StrIso}"/>
        </StackPanel>
    </DataTemplate>
    <!-- *************************************************************************** -->
</ResourceDictionary>